home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-11 | 1.9 KB | 72 lines |
- #!smake
- #
- # Copyright 1993, Silicon Graphics, Inc.
- # All Rights Reserved.
- #
- # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
- # the contents of this file may not be disclosed to third parties, copied or
- # duplicated in any form, in whole or in part, without the prior written
- # permission of Silicon Graphics, Inc.
- #
- # RESTRICTED RIGHTS LEGEND:
- # Use, duplication or disclosure by the Government is subject to restrictions
- # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
- # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
- # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
- # rights reserved under the Copyright Laws of the United States.
- #
- #
- # Makefile for opengl 1 class demos
- #
- # "$Revision: 1.2 $"
-
- include $(ROOT)/usr/include/make/commondefs
-
- SUBDIRS=
-
- .PRECIOUS: $(SUBDIRS)
-
- COMMONPREF=ogl1
-
- CFILES = enterprise.c polarViewDemo.c glxdino.c glxmotif.c modeler.c \
- shadow.c shear.c
- TARGETS = enterprise polarViewDemo glxdino glxmotif modeler \
- shadow shear
-
- OPENGL1 ?= ..
-
- LLDOPTS = -L${OPENGL1}/lib
- LLDLIBS = -loglprog -lglut -lGLU -lGL -lXm -lXmu -lXt -lX11 -lm
-
- LCINCS = -I. -I${OPENGL1}/include
- LCOPTS = -Xcpluscomm
-
- # don't bother making intermediate files since only one source file
- LMKDEPFLAGS= $(NULLSUFFIX_MKDEPFLAG)
-
- default: $(TARGETS) subdirs
-
- shadow: $$@.o
- $(CCF) -o $@ $@.o $(LLDOPTS) -lGLw -lGLU -lGL -lXm -lXt -lX11 -lm
-
- subdirs:
- # @for d in $(SUBDIRS); do \
- # if [ -d $$d ] ; then \
- # echo "====\tcd $$d; $(MAKE) $@"; \
- # ( cd $$d; $(MAKE) $@; ) ; \
- # fi ; \
- # done
-
- include $(COMMONRULES)
-
- $(SUBDIRS): $(_FORCE)
- cd $@; $(MAKE)
-
- install $(COMMONTARGS): $(COMMONPREF)$$@
- # @for d in $(SUBDIRS); do \
- # if [ -d $$d ] ; then \
- # echo "====\tcd $$d; $(MAKE) $@"; \
- # ( cd $$d; $(MAKE) $@; ) ; \
- # fi ; \
- # done
-